/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package application.service;

import application.model.EntityAccomplishment;
import application.dao.EntityAccomplishmentDao;

import java.util.ArrayList;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

/**
 *
 * @author aa6345
 */

@Service("entityAccomplishmentService")
@Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
public class EntityAccomplishmentServiceImpl implements EntityAccomplishmentService{

    @Autowired
  private EntityAccomplishmentDao entityAccomplishmentDao;

  public EntityAccomplishmentServiceImpl() {
  }

    public List<EntityAccomplishment> listSelectedEntityAccomp(String userInputHasMap) {
        //List<EntityAccomplishment> searchList = new ArrayList<EntityAccomplishment>();
        //return searchList;
        //System.out.println("2 ===>>"+entityAccomplishmentDao.listSelectedEntityAccomp().size());
        return entityAccomplishmentDao.listSelectedEntityAccomp(userInputHasMap);
    }
}
